package com.seata.cloud;

import com.seata.cloud.response.Result;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "seata-storage-provider",path = "/storage")
public interface StorageFacede {

	/**
	 * 扣减库存
	 */
	@RequestMapping("/decrease/{productId}/{count}")
	Result decrease(@PathVariable("productId") Long productId, @PathVariable("count") Integer count);
}
